package top.hymsk.ecommerce.pojo.status;

/**
 * @author 花于陌上开
 */
public enum OrderGoodStatusCode {
    ORDER_GOOD_NOT_EXIST(-1, "订单商品不存在"),
    STATUS_ERROR(-2, "订单商品状态错误"),
    NON_PAYMENT(0, "未支付"),
    WAIT_DELIVER(1, "待发货"),
    WAIT_DECEIVING(2, "待收货"),  //已发货
    AWAITING_REMARK(3, "待评论"),
    REVIEWED(4, "已评论"),
    REFUNDED(5, "已退款"),

    ;


    private final int statusCode;
    private final String description;

    OrderGoodStatusCode(int statusCode, String description) {
        this.statusCode = statusCode;
        this.description = description;
    }

    public int getStatusCode() {
        return this.statusCode;
    }

    public String getDescription() {
        return this.description;
    }
}
